<template>
  <view>
    首页
  </view>
</template>

<script>
  export default {
    data() {
      return {

      };
    },
    async onLoad() {
      const [error, data] = await uni.getLocation({
        geocode: true
      });
      if (error) return console.log('获取定位错误')
      console.log(data)
    }
  }
</script>

<style lang="scss">

</style>
